package org.jeecg.qis.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 过程检验配置明细表
 * @Author: shaolong
 * @Date: 2022-10-10
 * @Version: V1.0
 */
@Data
@TableName("qis_procdetail_cfg")
@ApiModel(value = "qis_procdetail_cfg对象", description = "过程检验配置明细表")
public class QisProcdetailCfg implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID")
    @TableId
    private Integer recId;
    /**
     * 主表配置ID
     */
    @ApiModelProperty(value = "主表配置ID")
    private String headid;
    /**
     * 产线
     */
    @ApiModelProperty(value = "产线")
    @TableField(exist = false)
    private String line;
    /**
     * 工序
     */
    @Excel(name = "工序", width = 15)
    @Dict(dicCode = "OP", dicText = "DESCRIPTION", dictTable = "mes_line_op_cfg")
    @ApiModelProperty(value = "工序")
    private String op;
    /**
     * 检测分组
     */
    @Excel(name = "检测分组", width = 15)
    @ApiModelProperty(value = "检测分组")
    private String checkGroup;
    /**
     * 抽样方案
     */
    @ApiModelProperty(value = "抽样方案")
    @TableField(exist = false)
    private String groupName;
    /**
     * 参数名称
     */
    @Excel(name = "参数名称", width = 15)
    @ApiModelProperty(value = "参数名称")
    private String name;
    /**
     * 参数描述
     */
    @Excel(name = "参数描述", width = 15)
    @ApiModelProperty(value = "参数描述")
    private String description;
    /**
     * 参数描述
     */
    @Excel(name = "图纸及版本", width = 15)
    @ApiModelProperty(value = "图纸及版本")
    private String indentifierno;
    /**
     * 数据填写类型 1: checkbox, 2: text
     */
    @Excel(name = "数据填写类型 1: checkbox, 2: text", width = 15)
    @ApiModelProperty(value = "数据填写类型 1: checkbox, 2: text")
    @Dict(dicCode = "DATATYPE")
    private String datatype;
    /**
     * 上限值
     */
    @Excel(name = "下限值", width = 15)
    @ApiModelProperty(value = "下限值")
    private java.math.BigDecimal lowLimit;
    /**
     * 下限值
     */
    @Excel(name = "上限值", width = 15)
    @ApiModelProperty(value = "上限值")
    private java.math.BigDecimal upLimit;
    /**
     * 1: check, 0: uncheck
     */
    @Excel(name = "1: check, 0: uncheck", width = 15)
    @ApiModelProperty(value = "1: check, 0: uncheck")
    @Dict(dicCode = "isCheck")
    private String limitCheck;

    /**
     * 规则分组ID
     */
    @Excel(name = "规则分组ID", width = 15)
    @ApiModelProperty(value = "规则分组ID")
    private String groupid;

    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    /**
     * 更新时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date ctime;
}
